Ext.define('MyApp.view.role.SearchUserGridView', {
			extend : 'MyApp.view.ux.BaseWindow',
			alias : 'widget.searchuserview',
			layout : 'fit',
			width: 700,
			height: 300,
			initComponent : function() {
				Ext.apply(this, {
					items:[{
						xtype:'grid',
						forceFit:true ,//自动填满表格 
					    autoScroll : true,
					    autoHeight: true,
					    store:'RoleSearchUserStore',
					    selType: 'checkboxmodel',
						columns:[
							{text:'用户名称',dataIndex:'userName', align:'center'},
							{text:'登陆ID',dataIndex:'loginID',align:'center'},
							{text:'是否活动',dataIndex:'active',align:'center',renderer:Ext.myUtil.YorNFormat},
							{text:'创建时间',dataIndex:'createDate',align:'center',renderer: Ext.util.Format.dateRenderer('Y-m-d')}
							
						],
						bbar: {
						        xtype: 'pagingtoolbar',
						        pageSize: 30,
						        store: 'RoleSearchUserStore',
						        displayInfo: true,
						        plugins: Ext.create('Ext.ux.ProgressBarPager', {})
						    }
					}],
					buttons : [{
						text : '确定',
						itemId : 'OK',
						glyph : 0xf002
					}, {
						text : '取消',
						itemId : 'cancel',
						glyph : 0xf00d,
						handler:function(btn){
							btn.up('window').close();
						}
					}]
				});
				this.callParent(arguments);
				this.down('grid').getStore().load();
			}
});